<!DOCTYPE html>
<html lang="en">
<title><?=$title?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<?=base_url()?>../resources/bootstrap/css/bootstrap.min.css"
	rel="stylesheet" media="screen">
<link href="<?=base_url()?>../resources/bootstrap/css/bootstrap-responsive.css"
	rel="stylesheet">
<link href="<?=base_url()?>../resources/demo2/css/style.css"
	rel="stylesheet">
	<link href="<?=base_url()?>../resources/demo2/css/reset.css"
	rel="stylesheet">
<script src="http://code.jquery.com/jquery.js"></script>
<script src="<?=base_url()?>../resources/bootstrap/js/bootstrap.min.js"></script>
<script src="<?=base_url()?>../resources/bootstrap/js/bootstrap-collapse.js"></script>
<script src="<?=base_url()?>../resources/bootstrap/js/holder/holder.js"></script>
<script src="<?=base_url()?>../resources/demo2/js/tools.js"></script>

</head>

<body>
<div class="container">
	<div class="navbar ">
		<div class="navbar-inner">
			
				<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
				<a class="btn btn-navbar" data-toggle="collapse"
					data-target=".nav-collapse"> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span> </a> <a
					class="brand" href="<?=site_url()?>">Beta Life | DEMO -
					Admin</a>
				<!-- Everything you want hidden at 940px or less, place within here -->
				<div class="nav-collapse collapse">
					<!-- .nav, .navbar-search, .navbar-form, etc -->

					<ul class="nav">
						<li
							class="dropdown <?php if($this->uri->segment(1)=='preference'){ echo 'active';}?>">
							<a href="#"
							class="dropdown-toggle" data-toggle="dropdown">
								<i class="icon-wrench"></i> Preference <b class="caret"></b> </a>
							<ul class="dropdown-menu " role="menu"
								aria-labelledby="dropdownMenu">
								<li <?php if($this->uri->segment(2)=='administration'){ echo 'class="active"';}?>><a href="<?=site_url('preference/administration')?>">Administration</a>
								</li>
								<li <?php if($this->uri->segment(2)=='theme'){ echo 'class="active"';}?>><a href="<?=site_url('preference/theme')?>">Themes</a></li>
								<li class="divider"></li>
								<li><a href="#">Settings</a></li>
								

							</ul>
						</li>
						<li class="divider-vertical"></li>
					</ul>
					<ul class="nav">
						<li
						<?php if($this->uri->segment(2)=='shop'){ echo 'class="active"';}?> ><a
							href="<?=site_url('shop')?>" ><i class="icon-shopping-cart"></i> Shop</a>
						</li>
						<li class="divider-vertical"></li>
						<li
						<?php if($this->uri->segment(2)=='blog'){ echo 'class="active"';}?>><a
							href="<?=site_url('blog')?>"><i class="icon-th-list"></i> Blog</a></li>
						<li class="divider-vertical"></li>
						<li
						<?php if($this->uri->segment(2)=='portfolio'){ echo 'class="active"';}?>><a
							href="<?=site_url('portfolio')?>"><i class="icon-leaf"></i> Portfolio</a></li>
						<li class="divider-vertical"></li>
						<li
						<?php if($this->uri->segment(2)=='gallery'){ echo 'class="active"';}?>><a
							href="<?=site_url('gallery')?>"><i class="icon-picture"></i> Gallery</a></li>
						<li class="divider-vertical"></li>
						
						
						<li><a href=""><i class="icon-user"></i> <?=$this->admin->lastname?> <?=$this->admin->firstname?></a></li>
					</ul>
					
					<a class="btn" href="#myModal" role="button" data-toggle="modal">Sign
						out</a>

				</div>
			</div>
		</div>		

	<ul class="breadcrumb">
  <li><i class="icon-home"></i> <?php if($this->uri->total_segments() != 0){?><a href="<?=site_url()?>" >Home</a><?php }else{?>Home<?php }?> <span class="divider">/</span></li>
  <?php for($i=0;$i<$this->uri->total_segments();$i++){?>
 <?php $this_url = array();?>
    <?php for($j=0;$j<$i+1;$j++){?>
    <?php $this_url[] = '/'.$this->uri->segment($j+1);?>
    <?php }?>
   <?php $this_url = implode("",$this_url);?>
  <li <?php if($i+1 == $this->uri->total_segments()){?>class="active"><?=$this->uri->segment($i+1)?><?php }else{?>><a href="<?=site_url($this_url)?>"><?=$this->uri->segment($i+1)?></a><?php }?><span class="divider">/</span></li>
 
  <?php }?>
 
  <hr class="bs-docs-separator">
  </ul>

	

	<div id="myModal" class="modal hide fade " tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h4 id="myModalLabel">Action:</h4>
  </div>
  <div class="modal-body">
    Would you like to log-out ?
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
    <a class="btn btn-primary"	href="<?=site_url('logout')?>">Yes</a>
  </div>
</div>


